package springThree;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
	public static void main(String[] args) {
		ApplicationContext ac = new AnnotationConfigApplicationContext(Config.class);
		// 获取容器中的对象
		LoginAction loginAction =  (LoginAction) ac.getBean("loginAction");
//		LoginAction loginAction =  ac.getBean("loginAction",LoginAction.class);
//		等同于       注意LoginAction的大小写
//		LoginAction loginAction = (LoginAction) ac.getBean(LoginAction.class);
		loginAction.UserServiceLogin();
	}
}
